Module* submodule;

for each (Robot/Module)
{
	x = 		Robot/Module/x;
	y = 		Robot/Module/y;
	z = 		Robot/Module/z;
	axis = 		Robot/Module/axis;
	modules.push_back(Module(x,y,z,axis));

	for (i=0; i<Submodule.Count; i++)
	{
		filepath = 	Robot/Module/Submodule[i]/filepath;
		submodule = new Module(filepath);

		for (j=0; j<transform.Count; j++)
		{
			x = 		Robot/Module/Submodule[i]/transform[j]/x;
			y = 		Robot/Module/Submodule[i]/transform[j]/y;
			z = 		Robot/Module/Submodule[i]/transform[j]/z;
			axis = 		Robot/Module/Submodule[i]/transform[j]/axis;
			r = 		Robot/Module/Submodule[i]/transform[j]/r;
						
			submodule->transform(x,y,z,axis,r,I,T0,0);
		}

		modules.back().addTriangles(submodule);			
	}	
}
